import request from '@/utils/request'

// 查询零售列表
export function listMarket(query) {
  return request({
    url: '/crop/team/list',
    method: 'get',
    params: query
  })
}

// 查询零售详细
export function getMarket(teamId) {
  return request({
    url: '/crop/team/getInfo?teamId='+teamId,
    method: 'post'
  })
}

// 新增零售
export function addMarket(data) {
  return request({
    url: '/crop/team',
    method: 'post',
    data: data
  })
}

// 修改零售
export function updateMarket(data) {
  return request({
    url: '/crop/team',
    method: 'put',
    data: data
  })
}

// 删除零售
export function delMarket(ids) {
  return request({
    url: '/crop/team/' + ids,
    method: 'delete'
  })
}

// 删除零售
export function addbanzu(ids,bancid) {
  return request({
    url: '/crop/team/addbanzu?ids='+ids+"&bancid="+bancid,
    method: 'post'
  })
}
